package com.pixels.input;

import java.awt.event.KeyEvent;

public class Controller {

	public double x, z, rotationb, xa, za, rotationa;
	public int mx, my;

	public boolean forward;
	public boolean back;
	public boolean left;
	public boolean right;
	public boolean turnLeft;
	public boolean turnRight;
	public boolean space;

	public void tick(InputHandler input) {

		forward = input.key[KeyEvent.VK_UP];
		back = input.key[KeyEvent.VK_DOWN];
		left = input.key[KeyEvent.VK_A];
		right = input.key[KeyEvent.VK_D];
		turnLeft = input.key[KeyEvent.VK_LEFT];
		turnRight = input.key[KeyEvent.VK_RIGHT];
		space = input.key[KeyEvent.VK_SPACE];
	}
}
